﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using intelliPaper.Model;

namespace intelliPaper.Chart
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            Paper p = new Paper();
            Question q1 = new Question();
            q1.SetID(1);
            Question q2 = new Question();
            q2.SetID(2);
            Question q3 = new Question();
            q3.SetID(3);

            KnowledgePoint k1 = new KnowledgePoint();
            k1.SetID(122);
            k1.KnowledgePointBody = "sdafsadf";
            KnowledgePoint k2 = new KnowledgePoint();
            k2.SetID(234);
            k2.KnowledgePointBody = "sdafdsafsadf";

            p.KnowledgePoints.Add(k2);
            p.KnowledgePoints.Add(k1);
            p.Questions.Add(q3);
            p.Questions.Add(q2);
            p.Questions.Add(q1);

            p.Difficulty = 4.4;
            p.Introduction = "用于2011-2012学年度下学期期末考试";
            p.LastModifyDate = DateTime.Now;
            p.TestDate = new DateTime(2012, 6, 30);

        }
    }
}
